package cn.dengta.webapp.media.entity;

import java.util.Date;

import cn.dengta.context.model.WesKit;
import cn.dengta.webapp.base.entity.TimeBasedEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @author william.wang
 * @since 2022-04-11
 */
@Setter
@Getter
@Accessors(chain = true)
@TableName("im_media_log")
public class MediaLog extends TimeBasedEntity {

	/**
	 * 通话类型：2=语音通话；3=视频通话
	 *
	 * @see cn.dengta.webapp.im.enums.ChatType
	 */
	private Integer type;
	/** 发起方用户ID */
	private Long fromUserId;
	/** 接听方用户ID */
	private Long toUserId;
	/** 付费用户ID */
	private Long payUserId;
	/** 受益的女性用户ID */
	private Long femaleUserId;
	/** 房间名 */
	private String channelName;
	/** 通话开始时间 */
	private Date beginTime;
	/** 通话开始时间 */
	private Date endTime;
	/** 通话时长（ s ） */
	private Integer duration;
	/** 通话花费钻石 */
	private Integer cost;
	/** 0=发起；1=接听；默认值为1是为了保证以前的数据与现在的状态保持一致 */
	private Integer status;
	/** 云端录制URL */
	private String url;
	/** 场景： 1=普通场景；2=速配；3=破冰；4=Ai界面转真人 */
	private Integer scene;
	/** 分包 */
	private WesKit wesKit;

	public static final String TYPE = "type";
	public static final String FROM_USER_ID = "from_user_id";
	public static final String FEMALE_USER_ID = "female_user_id";
	public static final String TO_USER_ID = "to_user_id";
	public static final String PAY_USER_ID = "pay_user_id";
	public static final String CHANNEL_NAME = "channel_name";
	public static final String BEGIN_TIME = "begin_time";
	public static final String END_TIME = "end_time";
	public static final String DURATION = "duration";
	public static final String COST = "cost";
	public static final String STATUS = "status";
	public static final String URL = "url";
	public static final String SCENE = "scene";
	public static final String WES_KIT = "wes_kit";

}
